﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="ChiTietThue.aspx.cs" Inherits="Admin_ChiTietThue" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View2" runat="server">
            <table cellpadding="0" cellspacing="0" class="style2">
                <tr>
                    <td>
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            onrowcancelingedit="GridView1_RowCancelingEdit" onrowediting="GridView1_RowEditing" 
                            onrowupdating="GridView1_RowUpdating" AllowPaging="True" PageSize="5" 
                            onpageindexchanging="GridView1_PageIndexChanging">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="MaThue" HeaderText="Mã thuê" ReadOnly="True" />
                                <asp:BoundField DataField="MaPhim" HeaderText="Phim " />
                                <asp:BoundField DataField="SoMuon" HeaderText="Số lượng mượn" />
                                <asp:BoundField DataField="SoGiao" HeaderText="Số lượng giao" />
                                <asp:BoundField DataField="SoTra" HeaderText="Số lượng trả" />
                                <asp:BoundField DataField="GiaThue" HeaderText="Giá thuê" />
                                <asp:CommandField CancelText="hủy" EditText="Sửa" ShowEditButton="True" 
                                    UpdateText="Lưu" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Thêm" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Xóa" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View1" runat="server">
            <table cellpadding="0" cellspacing="0" class="style2">
                <tr>
                    <td>
                        Mã phim :</td>
                    <td>
                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số lượng mượn</td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số lượng giao</td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số lượng trả</td>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Giá thuê</td>
                    <td>
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" onclick="btnLuu_Click" Text="Lưu" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnHuy" runat="server" onclick="btnHuy_Click" Text="Hủy" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>

